package com.plx.mapper;


import com.plx.pojo.employees;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeesMapper {



    void deleteById(String id);


//    <insert id="addEmp">insert into employees value (#{employeeId},#{fullName},#{gender},#{birth_date},#{hire_date},#{department},#{position},#{education},null,null,null,null,null,null,null,#{salaryGrade},#{status})
//    </insert>

//    @Insert("INSERT INTO employees " +
//            "(employee_id, full_name, gender, birth_date, hire_date, " +
//            "department, position, education, salary_grade, status) " +
//            "VALUES " +
//            "(#{employeeId}, #{fullName}, #{gender}, #{birth_date}, #{hire_date}, " +
//            "#{department}, #{position}, #{education}, #{salaryGrade}, #{status})")
    void addEmp(employees employees);

    List<employees> findAll();

    //根据ID回显数据
    employees findEMPById(String id);

    void Mupdata(employees eeemp);
}
